.class public Lcom/noshufou/android/su/AppListFragment;
.super Landroid/support/v4/app/ListFragment;
.source "AppListFragment.java"

# interfaces
.implements Landroid/support/v4/app/LoaderManager$LoaderCallbacks;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/noshufou/android/su/AppListFragment$AppListAdapter;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/support/v4/app/ListFragment;",
        "Landroid/support/v4/app/LoaderManager$LoaderCallbacks",
        "<",
        "Landroid/database/Cursor;",
        ">;"
    }
.end annotation


# static fields
.field private static final COLUMN_ALLOW:I = 0x3

.field private static final COLUMN_ID:I = 0x0

.field private static final COLUMN_LAST_ACCESS:I = 0x4

.field private static final COLUMN_LAST_ACCESS_TYPE:I = 0x5

.field private static final COLUMN_NAME:I = 0x2

.field private static final COLUMN_UID:I = 0x1

.field public static final PROJECTION:[Ljava/lang/String; = null

.field private static final TAG:Ljava/lang/String; = "Su.AppListFragment"


# instance fields
.field private mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

.field private mLoadingLayout:Landroid/widget/LinearLayout;

.field private mPinnedHeaderBackgroundColor:I

.field private mShowLogData:Z

.field private mShowStatusIcons:Z

.field private mStatusIconType:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 51
    const/4 v0, 0x6

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 52
    const-string v2, "_id"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "uid"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "name"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "allow"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "date"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "type"

    aput-object v2, v0, v1

    .line 51
    sput-object v0, Lcom/noshufou/android/su/AppListFragment;->PROJECTION:[Ljava/lang/String;

    .line 41
    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 41
    invoke-direct {p0}, Landroid/support/v4/app/ListFragment;-><init>()V

    .line 44
    iput-boolean v0, p0, Lcom/noshufou/android/su/AppListFragment;->mShowStatusIcons:Z

    .line 45
    iput-boolean v0, p0, Lcom/noshufou/android/su/AppListFragment;->mShowLogData:Z

    .line 46
    iput-object v1, p0, Lcom/noshufou/android/su/AppListFragment;->mStatusIconType:Ljava/lang/String;

    .line 49
    iput-object v1, p0, Lcom/noshufou/android/su/AppListFragment;->mLoadingLayout:Landroid/widget/LinearLayout;

    .line 41
    return-void
.end method

.method static synthetic access$1(Lcom/noshufou/android/su/AppListFragment;)Z
    .locals 1
    .parameter

    .prologue
    .line 44
    iget-boolean v0, p0, Lcom/noshufou/android/su/AppListFragment;->mShowStatusIcons:Z

    return v0
.end method

.method static synthetic access$2(Lcom/noshufou/android/su/AppListFragment;)Z
    .locals 1
    .parameter

    .prologue
    .line 45
    iget-boolean v0, p0, Lcom/noshufou/android/su/AppListFragment;->mShowLogData:Z

    return v0
.end method

.method static synthetic access$3(Lcom/noshufou/android/su/AppListFragment;)I
    .locals 1
    .parameter

    .prologue
    .line 47
    iget v0, p0, Lcom/noshufou/android/su/AppListFragment;->mPinnedHeaderBackgroundColor:I

    return v0
.end method

.method private doToggle(JI)V
    .locals 8
    .parameter "id"
    .parameter "allow"

    .prologue
    const/4 v7, 0x0

    const/4 v4, 0x1

    .line 171
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v5

    invoke-virtual {v5}, Landroid/support/v4/app/FragmentActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 172
    .local v0, cr:Landroid/content/ContentResolver;
    sget-object v5, Lcom/noshufou/android/su/provider/PermissionsProvider$Apps;->CONTENT_URI:Landroid/net/Uri;

    invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    .line 174
    .local v2, uri:Landroid/net/Uri;
    new-instance v3, Landroid/content/ContentValues;

    invoke-direct {v3}, Landroid/content/ContentValues;-><init>()V

    .line 175
    .local v3, values:Landroid/content/ContentValues;
    const-string v5, "allow"

    if-ne p3, v4, :cond_0

    const/4 v4, 0x0

    :cond_0
    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v3, v5, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 176
    invoke-virtual {v0, v2, v3, v7, v7}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 179
    invoke-virtual {v3}, Landroid/content/ContentValues;->clear()V

    .line 180
    const-string v4, "date"

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    .line 181
    const-string v4, "type"

    const/4 v5, 0x3

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 182
    sget-object v4, Lcom/noshufou/android/su/provider/PermissionsProvider$Logs;->CONTENT_URI:Landroid/net/Uri;

    invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    .line 183
    new-instance v1, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    const-class v5, Lcom/noshufou/android/su/service/ResultService;

    invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 184
    .local v1, intent:Landroid/content/Intent;
    const-string v4, "action"

    const/4 v5, 0x2

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 185
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/support/v4/app/FragmentActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 187
    return-void
.end method

.method private setupListView()V
    .locals 8

    .prologue
    const/4 v7, 0x0

    .line 116
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getListView()Landroid/widget/ListView;

    move-result-object v1

    .line 117
    .local v1, list:Landroid/widget/ListView;
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    invoke-virtual {v4}, Landroid/support/v4/app/FragmentActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    .line 119
    .local v0, inflater:Landroid/view/LayoutInflater;
    invoke-virtual {v1, v7}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 121
    new-instance v4, Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    const/4 v5, 0x0

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v6

    invoke-direct {v4, p0, v5, v6}, Lcom/noshufou/android/su/AppListFragment$AppListAdapter;-><init>(Lcom/noshufou/android/su/AppListFragment;Landroid/database/Cursor;Landroid/content/Context;)V

    iput-object v4, p0, Lcom/noshufou/android/su/AppListFragment;->mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    .line 122
    iget-object v4, p0, Lcom/noshufou/android/su/AppListFragment;->mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    invoke-virtual {p0, v4}, Lcom/noshufou/android/su/AppListFragment;->setListAdapter(Landroid/widget/ListAdapter;)V

    .line 124
    instance-of v4, v1, Lcom/noshufou/android/su/widget/PinnedHeaderListView;

    if-eqz v4, :cond_0

    .line 125
    iget-object v4, p0, Lcom/noshufou/android/su/AppListFragment;->mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    invoke-virtual {v4}, Lcom/noshufou/android/su/AppListFragment$AppListAdapter;->getDisplaySectionHeadersEnabled()Z

    move-result v4

    if-eqz v4, :cond_0

    .line 126
    const/4 v4, -0x1

    iput v4, p0, Lcom/noshufou/android/su/AppListFragment;->mPinnedHeaderBackgroundColor:I

    move-object v3, v1

    .line 128
    check-cast v3, Lcom/noshufou/android/su/widget/PinnedHeaderListView;

    .line 129
    .local v3, pinnedHeaderExpandableList:Lcom/noshufou/android/su/widget/PinnedHeaderListView;
    const v4, 0x7f03000e

    invoke-virtual {v0, v4, v1, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    .line 130
    .local v2, pinnedHeader:Landroid/view/View;
    invoke-virtual {v3, v2}, Lcom/noshufou/android/su/widget/PinnedHeaderListView;->setPinnedHeaderView(Landroid/view/View;)V

    .line 133
    .end local v2           #pinnedHeader:Landroid/view/View;
    .end local v3           #pinnedHeaderExpandableList:Lcom/noshufou/android/su/widget/PinnedHeaderListView;
    :cond_0
    iget-object v4, p0, Lcom/noshufou/android/su/AppListFragment;->mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    invoke-virtual {v1, v4}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 134
    return-void
.end method


# virtual methods
.method public onActivityCreated(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    .line 72
    invoke-super {p0, p1}, Landroid/support/v4/app/ListFragment;->onActivityCreated(Landroid/os/Bundle;)V

    .line 74
    invoke-direct {p0}, Lcom/noshufou/android/su/AppListFragment;->setupListView()V

    .line 75
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getLoaderManager()Landroid/support/v4/app/LoaderManager;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2, p0}, Landroid/support/v4/app/LoaderManager;->initLoader(ILandroid/os/Bundle;Landroid/support/v4/app/LoaderManager$LoaderCallbacks;)Landroid/support/v4/content/Loader;

    .line 76
    return-void
.end method

.method public onCreateLoader(ILandroid/os/Bundle;)Landroid/support/v4/content/Loader;
    .locals 8
    .parameter "id"
    .parameter "args"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/os/Bundle;",
            ")",
            "Landroid/support/v4/content/Loader",
            "<",
            "Landroid/database/Cursor;",
            ">;"
        }
    .end annotation

    .prologue
    .line 139
    new-instance v0, Landroid/support/v4/content/CursorLoader;

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    sget-object v2, Lcom/noshufou/android/su/provider/PermissionsProvider$Apps;->CONTENT_URI:Landroid/net/Uri;

    sget-object v3, Lcom/noshufou/android/su/AppListFragment;->PROJECTION:[Ljava/lang/String;

    .line 140
    const-string v4, "allow!=?"

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/String;

    const/4 v6, 0x0

    const/4 v7, -0x1

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    const/4 v6, 0x0

    .line 139
    invoke-direct/range {v0 .. v6}, Landroid/support/v4/content/CursorLoader;-><init>(Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V

    return-object v0
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 3
    .parameter "inflater"
    .parameter "container"
    .parameter "savedInstanceState"

    .prologue
    .line 65
    const v1, 0x7f03000b

    const/4 v2, 0x0

    invoke-virtual {p1, v1, p2, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 66
    .local v0, view:Landroid/view/View;
    const v1, 0x7f0a0032

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lcom/noshufou/android/su/AppListFragment;->mLoadingLayout:Landroid/widget/LinearLayout;

    .line 67
    return-object v0
.end method

.method public onListItemClick(Landroid/widget/ListView;Landroid/view/View;IJ)V
    .locals 1
    .parameter "l"
    .parameter "v"
    .parameter "position"
    .parameter "id"

    .prologue
    .line 112
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/noshufou/android/su/HomeActivity;

    invoke-virtual {v0, p4, p5}, Lcom/noshufou/android/su/HomeActivity;->showDetails(J)V

    .line 113
    return-void
.end method

.method public onLoadFinished(Landroid/support/v4/content/Loader;Landroid/database/Cursor;)V
    .locals 8
    .parameter
    .parameter "data"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/content/Loader",
            "<",
            "Landroid/database/Cursor;",
            ">;",
            "Landroid/database/Cursor;",
            ")V"
        }
    .end annotation

    .prologue
    .local p1, loader:Landroid/support/v4/content/Loader;,"Landroid/support/v4/content/Loader<Landroid/database/Cursor;>;"
    const/4 v7, 0x1

    .line 145
    iget-object v5, p0, Lcom/noshufou/android/su/AppListFragment;->mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    invoke-virtual {v5, p2}, Lcom/noshufou/android/su/AppListFragment$AppListAdapter;->swapCursor(Landroid/database/Cursor;)Landroid/database/Cursor;

    .line 146
    iget-object v5, p0, Lcom/noshufou/android/su/AppListFragment;->mLoadingLayout:Landroid/widget/LinearLayout;

    const/16 v6, 0x8

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 147
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/noshufou/android/su/HomeActivity;

    .line 148
    .local v0, activity:Lcom/noshufou/android/su/HomeActivity;
    invoke-virtual {v0}, Lcom/noshufou/android/su/HomeActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v5

    const v6, 0x7f0a0009

    invoke-virtual {v5, v6}, Landroid/support/v4/app/FragmentManager;->findFragmentById(I)Landroid/support/v4/app/Fragment;

    move-result-object v1

    .line 149
    .local v1, fragment:Landroid/support/v4/app/Fragment;
    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 150
    const-string v6, "pref_logging"

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    .line 151
    .local v2, logging:Z
    instance-of v5, v1, Lcom/noshufou/android/su/AppDetailsFragment;

    if-eqz v5, :cond_1

    .line 152
    const-wide/16 v3, 0x0

    .line 153
    .local v3, shownItem:J
    if-eqz v2, :cond_2

    .line 154
    check-cast v1, Lcom/noshufou/android/su/AppDetailsFragment;

    .end local v1           #fragment:Landroid/support/v4/app/Fragment;
    invoke-virtual {v1}, Lcom/noshufou/android/su/AppDetailsFragment;->getShownIndex()J

    move-result-wide v3

    .line 161
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getListView()Landroid/widget/ListView;

    move-result-object v5

    iget-object v6, p0, Lcom/noshufou/android/su/AppListFragment;->mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    invoke-virtual {v6, v3, v4}, Lcom/noshufou/android/su/AppListFragment$AppListAdapter;->getPositionForId(J)I

    move-result v6

    invoke-virtual {v5, v6, v7}, Landroid/widget/ListView;->setItemChecked(IZ)V

    .line 163
    .end local v3           #shownItem:J
    :cond_1
    return-void

    .line 156
    .restart local v1       #fragment:Landroid/support/v4/app/Fragment;
    .restart local v3       #shownItem:J
    :cond_2
    if-eqz p2, :cond_0

    invoke-interface {p2}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v5

    if-eqz v5, :cond_0

    .line 157
    const/4 v5, 0x0

    invoke-interface {p2, v5}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    .line 158
    check-cast v1, Lcom/noshufou/android/su/AppDetailsFragment;

    .end local v1           #fragment:Landroid/support/v4/app/Fragment;
    invoke-virtual {v1, v3, v4}, Lcom/noshufou/android/su/AppDetailsFragment;->setShownIndex(J)V

    goto :goto_0
.end method

.method public bridge synthetic onLoadFinished(Landroid/support/v4/content/Loader;Ljava/lang/Object;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    check-cast p1, Landroid/support/v4/content/Loader;

    check-cast p2, Landroid/database/Cursor;

    invoke-virtual {p0, p1, p2}, Lcom/noshufou/android/su/AppListFragment;->onLoadFinished(Landroid/support/v4/content/Loader;Landroid/database/Cursor;)V

    return-void
.end method

.method public onLoaderReset(Landroid/support/v4/content/Loader;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/content/Loader",
            "<",
            "Landroid/database/Cursor;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 167
    .local p1, loader:Landroid/support/v4/content/Loader;,"Landroid/support/v4/content/Loader<Landroid/database/Cursor;>;"
    iget-object v0, p0, Lcom/noshufou/android/su/AppListFragment;->mAdapter:Lcom/noshufou/android/su/AppListFragment$AppListAdapter;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/noshufou/android/su/AppListFragment$AppListAdapter;->swapCursor(Landroid/database/Cursor;)Landroid/database/Cursor;

    .line 168
    return-void
.end method

.method public onResume()V
    .locals 8

    .prologue
    const/4 v6, 0x1

    .line 80
    invoke-super {p0}, Landroid/support/v4/app/ListFragment;->onResume()V

    .line 82
    const/4 v1, 0x0

    .line 84
    .local v1, refresh:Z
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v5

    invoke-static {v5}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 85
    .local v0, prefs:Landroid/content/SharedPreferences;
    const-string v5, "pref_show_status_icons"

    invoke-interface {v0, v5, v6}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3

    .line 86
    .local v3, showStatusIcons:Z
    iget-boolean v5, p0, Lcom/noshufou/android/su/AppListFragment;->mShowStatusIcons:Z

    if-eq v5, v3, :cond_0

    .line 87
    const/4 v1, 0x1

    .line 89
    :cond_0
    iput-boolean v3, p0, Lcom/noshufou/android/su/AppListFragment;->mShowStatusIcons:Z

    .line 90
    const-string v5, "pref_applist_show_log_data"

    invoke-interface {v0, v5, v6}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    .line 91
    .local v2, showLogData:Z
    iget-boolean v5, p0, Lcom/noshufou/android/su/AppListFragment;->mShowLogData:Z

    if-eq v5, v2, :cond_1

    .line 92
    const/4 v1, 0x1

    .line 94
    :cond_1
    iput-boolean v2, p0, Lcom/noshufou/android/su/AppListFragment;->mShowLogData:Z

    .line 95
    const-string v5, "pref_status_icon_type"

    const-string v6, "emote"

    invoke-interface {v0, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 96
    .local v4, statusIconType:Ljava/lang/String;
    iget-object v5, p0, Lcom/noshufou/android/su/AppListFragment;->mStatusIconType:Ljava/lang/String;

    if-nez v5, :cond_4

    .line 99
    const/4 v1, 0x0

    .line 103
    :cond_2
    :goto_0
    iput-object v4, p0, Lcom/noshufou/android/su/AppListFragment;->mStatusIconType:Ljava/lang/String;

    .line 105
    if-eqz v1, :cond_3

    .line 106
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppListFragment;->getLoaderManager()Landroid/support/v4/app/LoaderManager;

    move-result-object v5

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v5, v6, v7, p0}, Landroid/support/v4/app/LoaderManager;->restartLoader(ILandroid/os/Bundle;Landroid/support/v4/app/LoaderManager$LoaderCallbacks;)Landroid/support/v4/content/Loader;

    .line 108
    :cond_3
    return-void

    .line 100
    :cond_4
    iget-object v5, p0, Lcom/noshufou/android/su/AppListFragment;->mStatusIconType:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    .line 101
    const/4 v1, 0x1

    goto :goto_0
.end method
